$.fn.gccombobox = function (qyjgId) {
    var option = {
        url: $.webPath() + '/organ/gc/gcmcList?qyjgId=' +qyjgId,
        valueField: 'id',
        textField: 'mc',
        multiple: false,
        panelHeight: '200',
        filter: function(q, row){
            var opts = $(this).combobox('options');
            return row[opts.textField].indexOf(q) >= 0;
        }
    }

    this.combobox($.createArg(option, arguments));
}


$.fn.cxgccombobox = function () {
    var option = {
        url: $.webPath() + '/organ/gc/cxgcList',
        valueField: 'id',
        textField: 'mc',
        panelHeight: '200'
    }
    this.combobox($.createArg(option, arguments));
}

$.fn.ckcombobox = function (ssgsId,multiple) {
    var url= $.webPath() + '/organ/ck/ckmcList';
    if(ssgsId)
        url+='?ssgsjgId='+ssgsId;
    var option = {
        url: url,
        valueField: 'id',
        textField: 'mc',
        multiple: multiple?multiple:false,
        panelHeight: '200',
        filter: function(q, row){
            var opts = $(this).combobox('options');
            return row[opts.textField].indexOf(q) >= 0;
        }

    }

    this.combobox($.createArg(option, arguments));
}

$.fn.jyckcombobox = function (ssgsId,multiple) {
    var url= $.webPath() + '/organ/ck/ckmcXsdList';
    if(ssgsId)
        url+='?ssgsjgId='+ssgsId;
    var option = {
        url: url,
        valueField: 'id',
        textField: 'mc',
        multiple: multiple?multiple:false,
        panelHeight: '200',
        filter: function(q, row){
            var opts = $(this).combobox('options');
            return row[opts.textField].indexOf(q) >= 0;
        }

    }

    this.combobox($.createArg(option, arguments));
}

$.fn.bgckcombobox = function () {
    var url= $.webPath() + '/organ/ck/ckmcList';
    var option = {
        url: url,
        valueField: 'id',
        textField: 'mc',
        multiple: false,
        panelHeight: '200',
        filter: function(q, row){
            var opts = $(this).combobox('options');
            return row[opts.textField].indexOf(q) >= 0;
        }

    }

    this.combobox($.createArg(option, arguments));
}